package demo10.mapper;

import demo10.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Component //Spring 管理 key：usermapperimpl value；反射机制生成的对象
@Repository //持久层
public class UserMapperImpl implements UserMapper{
    @Override
    public void addUser(User user) {
        System.out.println("完成入库！"+user.getName());
    }
}
